<!DOCTYPE html>
<html lang="en">

<head>
  @@include('./meta.html',{})
</head>

<body class="app-component">
  @@include('./header.html',{
  "components": "active"
  })
  <div class="component-wrapper">
    <div class="component-navleft">
      @@include('./navleft.html',{
      "tab_element": "active"
      })
    </div><!-- component-navleft -->

    <div class="component-sidebar">
      @@include('./sidebar.html',{
      "tab_element": "active",
      "popovers": "active",
      "urlPrefix": "."
      })
    </div><!-- component-sidebar -->

      <div class="component-content">
        <div class="component-content-header">
          <nav aria-label="breadcrumb">
            <ol class="breadcrumb breadcrumb-style1 mg-b-0">
              <li class="breadcrumb-item"><a href="#">Components</a></li>
              <li class="breadcrumb-item"><a href="#">UI Elements</a></li>
              <li class="breadcrumb-item active" aria-current="page">Popovers</li>
            </ol>
          </nav>
          <a href="javascript:;" id="componentOptions" class="text-secondary mg-l-auto d-xl-none"><i data-feather="more-horizontal"></i></a>
        </div><!-- component-content-header -->

        <div class="component-content-body" data-spy="scroll" data-target="#navSection" data-offset="120">
          <div class="content content-components">
            <div class="container">
              <!--sd-->
              <h1 class="td-title">Popovers</h1>
        <p class="td-lead">Documentation and examples for adding Bootstrap popovers, like those found in iOS, to any element on your site. Read the <a href="https://getbootstrap.com/docs/4.2/components/popovers/" target="_blank">Official Bootstrap Documentation</a> for a full list of instructions and other options.</p>

        <hr class="mg-y-40">

        <h4 id="section1" class="mg-b-10">Four Directions</h4>
        <p class="mg-b-30">Four options are available: top, right, bottom, and left aligned.</p>

        <div data-label="Example" class="td-example">
          <div class="row row-sm">
            <div class="col-sm-6 col-md">
              <button type="button" class="btn btn-secondary btn-block" data-container="body" data-toggle="popover" data-placement="top" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
                Popover Top
              </button>
            </div><!-- col -->
            <div class="col-sm-6 col-md mg-t-10 mg-sm-t-0">
              <button type="button" class="btn btn-secondary btn-block" data-container="body" data-toggle="popover" data-placement="right" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
                Popover Right
              </button>
            </div><!-- col -->
            <div class="col-sm-6 col-md mg-t-10 mg-sm-t-20 mg-md-t-0">
              <button type="button" class="btn btn-secondary btn-block" data-container="body" data-toggle="popover" data-placement="bottom" data-content="Vivamus
              sagittis lacus vel augue laoreet rutrum faucibus.">
                Popover Bottom
              </button>
            </div><!-- col -->
            <div class="col-sm-6 col-md mg-t-10 mg-sm-t-20 mg-md-t-0">
              <button type="button" class="btn btn-secondary btn-block" data-container="body" data-toggle="popover" data-placement="left" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
                Popover Left
              </button>
            </div><!-- col -->
          </div><!-- row -->
        </div><!-- td-example -->
        <pre><code class="language-html">&lt;button type=&quot;button&quot; class=&quot;btn btn-secondary btn-block&quot; data-container=&quot;body&quot; data-toggle=&quot;popover&quot; data-placement=&quot;top&quot; data-content=&quot;Vivamus sagittis lacus vel augue laoreet rutrum faucibus.&quot;&gt;
  Popover on Top
&lt;/button&gt;
&lt;button type=&quot;button&quot; class=&quot;btn btn-secondary btn-block&quot; data-container=&quot;body&quot; data-toggle=&quot;popover&quot; data-placement=&quot;right&quot; data-content=&quot;Vivamus sagittis lacus vel augue laoreet rutrum faucibus.&quot;&gt;
  Popover on Right
&lt;/button&gt;
&lt;button type=&quot;button&quot; class=&quot;btn btn-secondary btn-block&quot; data-container=&quot;body&quot; data-toggle=&quot;popover&quot; data-placement=&quot;bottom&quot; data-content=&quot;Vivamus
sagittis lacus vel augue laoreet rutrum faucibus.&quot;&gt;
  Popover on Bottom
&lt;/button&gt;
&lt;button type=&quot;button&quot; class=&quot;btn btn-secondary btn-block&quot; data-container=&quot;body&quot; data-toggle=&quot;popover&quot; data-placement=&quot;left&quot; data-content=&quot;Vivamus sagittis lacus vel augue laoreet rutrum faucibus.&quot;&gt;
  Popover on Left
&lt;/button&gt;</code></pre>
        <pre><code class="language-js">$(&apos;[data-toggle=&quot;popover&quot;]&apos;).popover();</code></pre>

        <hr class="mg-t-50 mg-b-40">

        <h4 id="section2" class="mg-b-10">Dismiss on Next Click</h4>
        <p class="mg-b-30">Use the focus trigger to dismiss popovers on the user’s next click of a different element than the toggle element.</p>

        <div data-label="Example" class="td-example">
          <a href="javascript:;" tabindex="0" class="btn btn-danger mn-ht-0" role="button" data-toggle="popover" data-trigger="focus" title="Dismissible Popover" data-content="And here's some amazing content. It's very engaging. Right?">Dismissible Popover</a>
        </div><!-- td-example -->
        <pre><code class="language-html">&lt;a tabindex=&quot;0&quot; class=&quot;btn btn-danger&quot; role=&quot;button&quot; data-toggle=&quot;popover&quot; data-trigger=&quot;focus&quot; title=&quot;Dismissible popover&quot; data-content=&quot;And here&apos;s some amazing content. It&apos;s very engaging. Right?&quot;&gt;Dismissible Popover&lt;/a&gt;</code></pre>

        <hr class="mg-t-50 mg-b-40">

        <h4 id="section3" class="mg-b-10">Colored Header</h4>
        <p class="mg-b-30">A custom style variant to create a colored title background of popover available in all four directions.</p>

        <div data-label="Example" class="td-example">
          <div class="row row-sm">
            <div class="col-sm-4">
              <a href="javascript:;" tabindex="0" class="btn btn-primary btn-block mn-ht-0 btn-popover" role="button" data-trigger="focus" data-placement="top" title="Primary Header" data-content="And here's some amazing content. It's very engaging. Right?">Primary Header</a href="javascript:;">
            </div><!-- col -->
            <div class="col-sm-4 mg-t-10 mg-sm-t-0">
              <a href="javascript:;" tabindex="0" class="btn btn-secondary btn-block mn-ht-0 btn-popover" role="button" data-trigger="focus" data-placement="top" title="Secondary Header" data-content="And here's some amazing content. It's very engaging. Right?">Secondary Header</a href="javascript:;">
            </div><!-- col -->
            <div class="col-sm-4 mg-t-10 mg-sm-t-0">
              <a href="javascript:;" tabindex="0" class="btn btn-success btn-block mn-ht-0 btn-popover" role="button" data-trigger="focus" data-placement="top" title="Success Header" data-content="And here's some amazing content. It's very engaging. Right?">Success Header</a href="javascript:;">
            </div><!-- col -->
            <div class="col-sm-4 mg-t-10 mg-sm-t-20">
              <a href="javascript:;" tabindex="0" class="btn btn-danger btn-block mn-ht-0 btn-popover" role="button" data-trigger="focus" data-placement="top" title="Danger Header" data-content="And here's some amazing content. It's very engaging. Right?">Danger Header</a href="javascript:;">
            </div><!-- col -->
            <div class="col-sm-4 mg-t-10 mg-sm-t-20">
              <a href="javascript:;" tabindex="0" class="btn btn-warning btn-block mn-ht-0 btn-popover" role="button" data-trigger="focus" data-placement="top" title="Warning Header" data-content="And here's some amazing content. It's very engaging. Right?">Warning Header</a href="javascript:;">
            </div><!-- col -->
            <div class="col-sm-4 mg-t-10 mg-sm-t-20">
              <a href="javascript:;" tabindex="0" class="btn btn-info btn-block mn-ht-0 btn-popover" role="button" data-trigger="focus" data-placement="top" title="Info Header" data-content="And here's some amazing content. It's very engaging. Right?">Info Header</a href="javascript:;">
            </div><!-- col -->
          </div><!-- row -->
        </div><!-- td-example -->
        <pre><code class="language-js">$(&apos;.btn-primary&apos;).popover({
  template: &apos;&lt;div class=&quot;popover popover-header-primary&quot; role=&quot;tooltip&quot;&gt;
              &lt;div class=&quot;arrow&quot;&gt;&lt;/div&gt;
              &lt;h3 class=&quot;popover-header&quot;&gt;&lt;/h3&gt;
              &lt;div class=&quot;popover-body&quot;&gt;&lt;/div&gt;
            &lt;/div&gt;&apos;
})</code></pre>

        <div class="table-responsive mg-t-25">
          <table class="table table-components">
            <thead>
              <tr>
                <th class="wd-40p">Class Reference</th>
                <th class="wd-60p">Color</th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td>class="popover popover-header-[color]"</td>
                <td>primary | secondary | success | danger | warning | info</td>
              </tr>
            </tbody>
          </table>
        </div><!-- table-responsive -->

        <hr class="mg-y-40">

        <h4 id="section4" class="mg-b-10">Full Background Color</h4>
        <p class="mg-b-30">A custom style variant to create a full colored background to header and body of popover. Available in all four directions.</p>

        <div data-label="Example" class="td-example">
          <div class="row row-sm">
            <div class="col-sm-4">
              <a href="javascript:;" tabindex="0" class="btn btn-primary btn-block mn-ht-0 btn-bg-popover" role="button" data-trigger="focus" data-placement="top" title="Primary Popover" data-content="And here's some amazing content. It's very engaging. Right?">Primary Popover</a href="javascript:;">
            </div><!-- col -->
            <div class="col-sm-4 mg-t-10 mg-sm-t-0">
              <a href="javascript:;" tabindex="0" class="btn btn-secondary btn-block mn-ht-0 btn-bg-popover" role="button" data-trigger="focus" data-placement="top" title="Secondary Popover" data-content="And here's some amazing content. It's very engaging. Right?">Secondary Popover</a href="javascript:;">
            </div><!-- col -->
            <div class="col-sm-4 mg-t-10 mg-sm-t-0">
              <a href="javascript:;" tabindex="0" class="btn btn-success btn-block mn-ht-0 btn-bg-popover" role="button" data-trigger="focus" data-placement="top" title="Success Popover" data-content="And here's some amazing content. It's very engaging. Right?">Success Popover</a href="javascript:;">
            </div><!-- col -->
            <div class="col-sm-4 mg-t-10 mg-sm-t-20">
              <a href="javascript:;" tabindex="0" class="btn btn-danger btn-block mn-ht-0 btn-bg-popover" role="button" data-trigger="focus" data-placement="top" title="Danger Popover" data-content="And here's some amazing content. It's very engaging. Right?">Danger Popover</a href="javascript:;">
            </div><!-- col -->
            <div class="col-sm-4 mg-t-10 mg-sm-t-20">
              <a href="javascript:;" tabindex="0" class="btn btn-warning btn-block mn-ht-0 btn-bg-popover" role="button" data-trigger="focus" data-placement="top" title="Warning Popover" data-content="And here's some amazing content. It's very engaging. Right?">Warning Popover</a href="javascript:;">
            </div><!-- col -->
            <div class="col-sm-4 mg-t-10 mg-sm-t-20">
              <a href="javascript:;" tabindex="0" class="btn btn-info btn-block mn-ht-0 btn-bg-popover" role="button" data-trigger="focus" data-placement="top" title="Info Popover" data-content="And here's some amazing content. It's very engaging. Right?">Info Popover</a href="javascript:;">
            </div><!-- col -->
          </div><!-- row -->
        </div><!-- td-example -->
        <pre><code class="language-js">$(&apos;.btn-primary&apos;).popover({
  template: &apos;&lt;div class=&quot;popover popover-primary&quot; role=&quot;tooltip&quot;&gt;
              &lt;div class=&quot;arrow&quot;&gt;&lt;/div&gt;
              &lt;h3 class=&quot;popover-header&quot;&gt;&lt;/h3&gt;
              &lt;div class=&quot;popover-body&quot;&gt;&lt;/div&gt;
            &lt;/div&gt;&apos;
})</code></pre>

        <div class="table-responsive mg-t-25">
          <table class="table table-components">
            <thead>
              <tr>
                <th class="wd-40p">Class Reference</th>
                <th class="wd-60p">Color</th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td>class="popover popover-[color]"</td>
                <td>primary | secondary | success | danger | warning | info</td>
              </tr>
            </tbody>
          </table>
        </div><!-- table-responsive -->

        @@include('./footer.html',{})

            </div>
          </div>
        </div><!-- component-content-body -->

        <div class="component-content-sidebar section-nav">
          <label class="tx-10 tx-medium tx-spacing-1 tx-color-03 tx-uppercase tx-sans mg-b-15">On This Page</label>
          <nav id="navSection" class="nav flex-column">
            <a href="#section1" class="nav-link">Four Directions</a>
            <a href="#section2" class="nav-link">Dismiss on Next Click</a>
            <a href="#section3" class="nav-link">Colored Header</a>
            <a href="#section4" class="nav-link">Full Background Color</a>
          </nav>
        </div><!-- component-content-sidebar -->
      </div><!-- component-content -->

    </div><!-- component-wrapper -->
    @@include('./_script.html',{})

    <script>
      $(function(){
        'use strict'

        $('[data-toggle="popover"]').popover();

        // Primary Header
        $('.btn-popover.btn-primary').popover({
          template: '<div class="popover popover-header-primary" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'
        })

        // Primary Background
        $('.btn-bg-popover.btn-primary').popover({
          template: '<div class="popover popover-primary" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'
        })


        // Secondary Header
        $('.btn-popover.btn-secondary').popover({
          template: '<div class="popover popover-header-secondary" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'
        })

        $('.btn-bg-popover.btn-secondary').popover({
          template: '<div class="popover popover-secondary" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'
        })


        // Success Header
        $('.btn-popover.btn-success').popover({
          template: '<div class="popover popover-header-success" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'
        })

        $('.btn-bg-popover.btn-success').popover({
          template: '<div class="popover popover-success" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'
        })


        // Danger Header
        $('.btn-popover.btn-danger').popover({
          template: '<div class="popover popover-header-danger" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'
        })

        $('.btn-bg-popover.btn-danger').popover({
          template: '<div class="popover popover-danger" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'
        })


        // Warning Header
        $('.btn-popover.btn-warning').popover({
          template: '<div class="popover popover-header-warning" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'
        })

        $('.btn-bg-popover.btn-warning').popover({
          template: '<div class="popover popover-warning" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'
        })


        // Info Header
        $('.btn-popover.btn-info').popover({
          template: '<div class="popover popover-header-info" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'
        })

        $('.btn-bg-popover.btn-info').popover({
          template: '<div class="popover popover-info" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'
        })

      });
    </script>
  </body>
</html>
